package demo.thread;

/**
 * @Author: tyzhang
 * @Description: 消费者
 * @Date: Created in 23:35 2018/3/13
 */
public class Watcher implements Runnable {
    private Movie m;

    public Watcher(Movie m) {
        super();
        this.m = m;


    }

    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            m.watch();
        }
    }
}
